home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware in MacFormat / brailler0.5b / brlr ƒ / Shell ƒ / util.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-20  |  481 b   |  23 lines  |  [TEXT/MMCC]

  1. #include "util.h"
  2.  
  3. /* Mymemcpy is now #defined in util.h */
  4.  
  5. void Mymemset(Ptr output, unsigned char value, unsigned long len)
  6. {
  7.     unsigned long    i;
  8.     
  9.     for (i=0; i<len; i++)
  10.         *((unsigned char*)((long)output+i))=value;
  11. }
  12.  
  13. Boolean Mymemcompare(Ptr thisThing, Ptr thatThing, unsigned long len)
  14. {
  15.     unsigned long    i;
  16.     Boolean            goon;
  17.     
  18.     goon=TRUE;
  19.     for (i=0; (i<len) && (goon); i++)
  20.         goon=(*((unsigned char*)((long)thisThing+i))==*((unsigned char*)((long)thatThing+i)));
  21.     return goon;
  22. }
  23.